package com.uinnova.product.eam.mvc;

import com.binary.jdbc.Page;
import com.uinnova.product.eam.base.cj.ResultMsg;
import com.uinnova.product.eam.model.cj.request.PlanChapterQuestionRequest;
import com.uinnova.product.eam.model.cj.vo.PlanChapterQuestionVO;
import com.uinnova.product.eam.service.GTPlanChapterQuestionService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 国投定制接口
 */
@RestController
@RequestMapping("/question")
public class GTPlanChapterQuestionController {

    @Resource
    private GTPlanChapterQuestionService gtPlanChapterQuestionService;

    @PostMapping("/find/gt")
    public ResultMsg findGTQuestionList(@RequestBody PlanChapterQuestionRequest request) {
        Page<PlanChapterQuestionVO> questionList = gtPlanChapterQuestionService.findGTQuestionList(request);
        return new ResultMsg(questionList);
    }
}
